package com.itheima.collection;

import java.util.ArrayList;
import java.util.Collection;

public class Demo04 {

    public static void main(String[] args) {
        Collection<String> list = new ArrayList<>();
        //boolean add(E e)                        	添加元素
        list.add("蔡徐坤1");
        list.add("蔡徐坤2");
        list.add("蔡徐坤2");
        list.add("蔡徐坤3");
        list.add("蔡徐坤1");
        for (String s : list) {
            System.out.println(s);
        }
    }
}
